<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\service\cdc\cost\pull;

use app\service\BaseService;

class PullMediaService extends BaseService
{
    private array $params = [];

    /**
     * @var bool|mixed|string
     */
    private array $response = [];

    private array $thisResponseData = [];

    private array $responseData = [];

    /**
     * @return bool 请求数据是否为空
     */
    public function isResponseEmpty(): bool
    {
        return empty($this->thisResponseData);
    }

    /**
     * 获取返回码.
     * @return mixed
     */
    public function getResponseCode()
    {
        return $this->response['code'] ?? '-10000';
    }

    /**
     * 获取返回错误信息.
     * @return mixed
     */
    public function getResponseMsg()
    {
        return $this->response['message'] ?? '';
    }

    /**
     * 获取返回体.
     */
    public function getResponseData(array $args = []): array
    {
        return $this->responseData;
    }
}
